//
//  PointTemplateSpecial.cpp
//  learnC++
//
//  Created by liuzhibing on 2018/6/21.
//  Copyright © 2018年 yunfan.com. All rights reserved.
//

#include "PointTemplateSpecial.hpp"

template <>
Storage5<char *>::Storage5(char *value) {

    int length = 0;
    
    while (value[length] != '\0') {
        ++length;
    }
    
    ++length;
    m_value = new char[length];
    
    for (int i = 0; i < length; ++i) {
        m_value[i] = value[i];
    }
    
};

template <>
Storage5<char *>::~Storage5(){
    delete[] m_value;
}

template <>
void Storage5<char *>::print(){
    std::cout << m_value;
}


